package com.example.demo.mapper;

import com.example.demo.entity.Doctor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: WinstonDeng
 * @Description:
 * @Date: Created in 18:18 2020/4/7
 * @Modified by:
 */
@Repository
public interface DoctorMapper {
    Doctor findById(long id);
    Doctor findByUsername(String username);
    boolean updateDoctor(Doctor doctor);
    List<Doctor> findByRealName(String realName);
    List<Doctor> findByDepartmentId(long departmentId);

    Doctor findByOpenId(String openId);
}
